import { API } from "~/models/api";
import { ArticleResponse } from "~/models/article";
import { ResponseMsg } from "~/models/universal";

const func = async (event:any) => {
  const header = await event.headers;
  const body = await readBody(event);

  
  const result = await $fetch<ResponseMsg<ArticleResponse>>(API.BASE + API.FILE_QUERY.URL, {
    method: "POST", body: body,headers:header
  })
  
  return result;
}
export default exceptionCapture(func)
